/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tools;

import java.io.IOException;
import javax.servlet.jsp.JspWriter;

/**
 *
 * @author Muhammad Anis
 */
public class writer {
    public static void write(Object e,JspWriter out) throws IOException{
        out.print(e);
    }
    public static void redirect(String destination,JspWriter out) throws IOException{
        out.print("<html><body>");
            out.print("<script type=\"text/javascript\">"
                    + "window.location = \"" +destination + "\""
                    + "</script>");
            out.print("</html></body>");
    }
}
